package mvp.hibernate.demo.model;

import java.io.Serializable;
import java.util.Calendar;

/**
 * Created by user on 29.06.2014.
 */
public class Event {
    private long id;
    private String descr;
    private Calendar eventDate;
    private SomeData someData;

    public Event(String descr, Calendar eventDate,SomeData someData) {
        this.descr = descr;
        this.eventDate = eventDate;
        this.someData = someData;
    }

    public Event() {
    }

    public long getId() {
        return id;
    }

    protected void setId(long id) {
        this.id = id;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public Calendar getEventDate() {
        return eventDate;
    }

    protected void setEventDate(Calendar eventDate) {
        this.eventDate = eventDate;
    }

    public SomeData getSomeData() {
        return someData;
    }

    public void setSomeData(SomeData someData) {
        this.someData = someData;
    }

    @Override
    public String toString() {
        return "Event{" +
                "id=" + id +
                ", descr='" + descr + '\'' +
                ", eventDate=" + eventDate +
                ", someData=" + someData +
                '}';
    }
}
